package com.boy.entity.dto;

import com.boy.entity.Permission;
import lombok.Data;

import java.util.List;

/**
 * @author whd
 * @date 2024/05/27 14:43:24
 */
@Data
public class PermissionDto extends Permission {
    private List<Permission> permissions;

    public PermissionDto(Permission permission) {
        this.setId(permission.getId());
        this.setNick(permission.getNick());
        this.setCreated(permission.getCreated());
        this.setContext(permission.getContext());
        this.setPath(permission.getPath());
        this.setParentId(permission.getParentId());
        this.setUpdated(permission.getUpdated());
        this.setIsDelete(permission.getIsDelete());
    }
}
